﻿<%@ Page Title="" Language="C#" MasterPageFile="~/User/User.Master" AutoEventWireup="true" CodeBehind="SelectHT.aspx.cs" Inherits="CoolERP_Web.User.SelectHT" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script src="../Scripts/lhgdialog/lhgcore.min.js" type="text/javascript"></script>
<script type="text/javascript">
    var dg = frameElement.lhgDG;
    function selThis(obj) {
        J('#txtGLDJ', dg.curDoc).val($(obj).val());
        J('#hidKHID', dg.curDoc).val($(obj).parent().find("input[type=hidden]").val());
        J('#txtKHJC', dg.curDoc).val($(obj).closest("tr").find("td").eq(2).text());
        dg.cancel();
    }
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td class=tbHead_L></td>
        <td class=tbHead_M></td>
        <td class=tbHead_R></td>
    </tr>
    <tr>
        <td class=tbBody_L></td>
        <td class=tbBody_M>
            <ul class=tags>
                <li class=liTitle><div>查找合同</div></li>
            </ul>
            <table class="grvCSS" cellspacing="0" border="1" style="width:100%;border-collapse:collapse;">
                <tr>
                    <td>合同号：<asp:TextBox ID="txtBH" runat="server" CssClass="textbox" MaxLength="20"></asp:TextBox></td>
                    <td>客户简称：<asp:TextBox ID="txtName" runat="server" CssClass="textbox" MaxLength="20"></asp:TextBox></td>
                    <td><asp:ImageButton ID="btnQuery" runat="server" ImageUrl="~/Images/Common/btn_query0.png" OnClick="btnQuery_Click" />
                    &nbsp;&nbsp;<asp:ImageButton ID="btnReset" runat="server" ImageUrl="~/Images/Common/btn_reset0.png" OnClick="btnReset_Click" />
                    &nbsp;&nbsp;<input type=image src="../Images/Common/btn_close.png" onclick="dg.cancel();" /></td>
                </tr>
            </table>
            <ul class=tags><li class=liTitle><div>合同列表</div></li></ul>
            <asp:GridView ID="GridView1" runat="server" Width=100% PageSize=15 ClientIDMode=Static CssClass="grvCSS" AutoGenerateColumns="False" AllowPaging="True">
                <Columns>
                    <asp:TemplateField HeaderText="选择">
                        <ItemTemplate><input type=radio id="chkSel" name="chkSel" value='<%# Eval("BH") %>' onclick="selThis(this)" />
                        <input type=hidden id="hidKHID" value='<%# Eval("KHID") %>' /></ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="BH" HeaderText="合同编号"/>
                    <asp:BoundField DataField="KHJC" HeaderText="客户简称"/>
                    <asp:BoundField DataField="LXR" HeaderText="客户联系人"/>
                    <asp:BoundField DataField="DHSJ" HeaderText="订货时间"/>                         
                </Columns>
                <PagerSettings Visible=false />
            </asp:GridView>
            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" CssClass="pager" UrlPaging="false" ShowCustomInfoSection="Left"
                FirstPageText="首页" LastPageText="尾页" PrevPageText="前页" NextPageText="后页" OnPageChanged="AspNetPager1_PageChanged" 
                TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" PageIndexBoxType="TextBox" ShowPageIndexBox="Always" 
                SubmitButtonText="Go" CustomInfoHTML="共%RecordCount%条数据，每页%PageSize%条，共%PageCount%页，当前为第%CurrentPageIndex%页">
            </webdiyer:AspNetPager>
            <asp:Panel ID="panMsg" runat="server" ClientIDMode=Static CssClass="msg24_attention" Visible=false>无相关数据</asp:Panel>
        </td>
        <td class=tbBody_R></td>
    </tr>
    <tr>
        <td class=tbFoot_L></td>
        <td class=tbFoot_M></td>
        <td class=tbFoot_R></td>
    </tr>
</table>
</asp:Content>
